 |
|
 |
Subject: Creation/modification of repeating/recurring meetings using Java |
 |
 |
 |
Product Area: Domino Server |
 |
Technical Area: Application development |
 |
Platform: Windows XP client |
 |
Release: 8.0 |
 |
Reproducible: Always |
 |
 |
 |
 |
Hello all,
This question is kind of long, but please bear with me. I’m using the Java API to interface with a Domino 8 server (though any solution would have to work for >= 6.5.X as well).
When a recurring meeting is created, only one Domino item is created to represent all the meetings. All the dates of the various instances are kept in a DateTime vector is several fields of the document (CalendarDateTime for example). Whenever one instance of this repeating meeting is changed (the starting time for instance), the original document is “split” up into X number of documents, where X is of course the number of instances. What happens is that the instance representing the date that was changed keeps the DocID of the original RDV, and Domino creates the other RDVs around the changed RDV (or at least that’s what seems to be happening).
I’m trying to recreate this behaviour using the Java API but I’ve hit a wall. What I try to do is take the recurring RDV and remove all the dates except for the one that has changed. I then create X new documents, and copy each field (using Item.copyToDocument()) to the new RDV. In essence I create clones of the original. I then modify the dates of these clones and save the documents.
Everything seems to work, but these new documents don’t seem to be linked to the original. If I look at the $REF field, it looks valid (they all have the same, original $REF value), but as soon as I open one of these RDVs, I get a “Index not found” error, and the $REF field is changed to a new value. Also, the RDV doesn’t contain the other dates, ie. It seems to be by itself. If I delete one of these copies, Domino doesn’t ask me if I want to delete “just this instance” or “all instances”. Strangely enough, if I delete the modified RDV (the original), it deletes all the other copycats.
I’ve also tried deleting the entire repeating RDV, and then recreating each instance, but the $REF field is special and doesn’t seem to be something that you can set in Java (I get invalid data type errors).
I’m not sure what to do, so if anyone could help, I’d appreciate it!
 
Feedback number WEBB7Z9E4C created by ~Lorraine Ekweburakoi on 12/31/2009


Creation/modification of repeating/... (~Lorraine Ekweb... 31.Dec.09)
. . Repeating meetings (~Lorraine Nimji... 3.Jan.10)
. . . . Thank you! (~Lorraine Ekweb... 4.Jan.10)
. . . . . . Setting $REF field (~Lorraine Nimji... 7.Jan.10) |
|  |
|